package com.apesource.project02.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @version 1.0
 * @auther:暮雪
 * @date:2025/9/18
 */
@TableName("registrations")
public class Registration {
    @TableId(value = "registration_id",type = IdType.AUTO)
    private int registrationId;

    @TableField("user_id")
    private int userId;

    @TableField("event_id")
    private int eventId;

    @TableField("registration_time")
    private Date registrationTime;

    @TableField("status")
    private String status;

    public Registration() {
    }

    public Registration(int userId, int eventId, Date registrationTime, String status) {
        this.userId = userId;
        this.eventId = eventId;
        this.registrationTime = registrationTime;
        this.status = status;
    }

    public Registration(int registrationId, int userId, int eventId, Date registrationTime, String status) {
        this.registrationId = registrationId;
        this.userId = userId;
        this.eventId = eventId;
        this.registrationTime = registrationTime;
        this.status = status;
    }

    public int getRegistrationId() {
        return registrationId;
    }

    public void setRegistrationId(int registrationId) {
        this.registrationId = registrationId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getEventId() {
        return eventId;
    }

    public void setEventId(int eventId) {
        this.eventId = eventId;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
